
//
//  HMMeTableViewController.swift
//  Weibo
//
//  Created by Apple on 2017/7/10.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMMeTableViewController: HMVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogin {
            setPushButton()
        } else {
            visitorView?.updateVisitorInfo(message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人", imageName: "visitordiscover_image_profile")
        }
        
    }
    
    //  设置push按钮
    private func setPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushButtonAction))
    }
    
    //  MARK:   --点击push按钮事件
    @objc private func pushButtonAction() {
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
    }
    
   
}
